home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1993 July / Internet Tools.iso / RockRidge / mail / sendmail / sendmail-5.65c+IDA-1.4.4.1 / ida / charset / charset.h next >
Encoding:
C/C++ Source or Header  |  1991-04-04  |  1.6 KB  |  51 lines

  1. /*
  2. ** Copyright (c) 1990,1991 Keld Simonsen
  3. ** All rights reserved.
  4. **
  5. ** Written by Keld Simonsen, RAP, Sct. Joergens Alle 8,
  6. **            DK-1615 Copenhagen V, Denmark
  7. **
  8. ** Redistribution and use of this routine in source and binary forms are
  9. ** permitted provided that: (1) source distributions retain this entire
  10. ** copyright notice.  (2) The character and character set codes and names
  11. ** may not be changed. (3) The programming code must remain backwards
  12. ** compatible.
  13. **
  14. ** The restriction on altering of names is done so that all versons
  15. ** of the code have a chance of being compatible. If you want alterations
  16. ** or additions, please mail me (preferably email to  keld@dkuug.dk)
  17. ** and I will consider it for future releases.
  18. ** 
  19. ** If the material is included in commercial products, donations
  20. ** will be most appreciated.
  21. ** 
  22. ** Keld Simonsen
  23. **
  24. ** @(#)$Header: /usr/local/src/mail/sendmail/ida/charset/RCS/charset.h,v 2.0 1991/04/05 05:33:29 paul Exp $
  25. */
  26.  
  27. /*
  28.  * The following 3 parameters may need modifying.
  29.  */
  30. typedef unsigned char    CHAR8U;    /* must be able to hold values 0-255 */
  31. typedef short int    INT16S;    /* Must be able to hold 16 bits signed int */
  32. #define DEFAULT_ESCAPE    29    /* see doc/DESIGN.extra for more info */
  33.  
  34. #define IN_CH        INT16S
  35. #define OUT_CH        CHAR8U
  36.  
  37. #define C256L        256L
  38. #define C256        256    /* max val of any char encoded as one byte */
  39. #define LSIZE        256    /* max byte chars on a line, in a file name */
  40.  
  41. typedef struct charset    CHARSET;
  42. struct charset
  43. {
  44.     CHARSET        *next;
  45.     INT16S        ecma;
  46.     char        *name;
  47.     IN_CH        *in;    /* characters in 2 byte mnemonic format */
  48.     OUT_CH        *out;    /* characters in 8 bit format */
  49.     INT16S        esc;
  50. };
  51.